package guiwithbananaandhungrymonkeys;
 
import javax.swing.JFrame;
import javax.swing.JPanel;
 
public class GUI extends JFrame {
 
	private static final long serialVersionUID = 1L;

	private JPanel ville;
	
	public GUI() {
        init();
    }
	
	public void init() {
		this.setTitle("Projet Modélisation & Simulation");
		this.setLocationRelativeTo(null);               
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		ville = new Ville();
		this.setContentPane(ville);
		this.setLocation(100, 50);
		this.setSize(800, 600);
		//this.setExtendedState(JFrame.MAXIMIZED_BOTH );
		this.setVisible(true);
	}
	
	public void update() {
		this.repaint();
	}
        
}